package com.dongdongshop.controller;

import com.dongdongshop.service.FreemarkerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("freemarker")
@Controller
public class FreemarkerController {
    @Autowired
    private FreemarkerService freemarkerService;

    @RequestMapping("createPage")
    @ResponseBody
    public String createPage(String goodsId){
        freemarkerService.createPage(goodsId);
        return "页面创建成功";
    }
}
